package com.xqy.wexmini.domain;

import com.baomidou.mybatisplus.annotation.*;


import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 讨论区
 * </p>
 *
 * @author xia
 * @since 2022-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Discuss对象", description="讨论区")
public class Discuss implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "网名")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "评论类型")
    private String type;

    @ApiModelProperty(value = "话题")
    private String topic;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "评论内容")
    private String comments;

    @ApiModelProperty(value = "点赞数")
    private Integer praise;

    @TableField(fill = FieldFill.INSERT)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}
